// pages/manhua.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        list: [{
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148696177.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148696177.png",
                name: "3D动漫风格",
                options: [],
                cartoon_type: "",
                Action: "3DGameCartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149496670.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149496670.png",
                name: "3D卡通漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "3d_cartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149671509.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149671509.png",
                name: "波普风漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "bopu_cartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149687558.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149687558.png",
                name: "美漫风漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "amcartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149539895.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149539895.png",
                name: "天使漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "angel"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149583782.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149583782.png",
                name: "恶魔漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "demon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148186835.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148186835.png",
                name: "萌漫风格",
                options: [],
                cartoon_type: "tccartoon",
                Action: "JPCartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148250004.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148250004.png",
                name: "复古风格",
                options: [],
                cartoon_type: "classic_cartoon",
                Action: "JPCartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148299474.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148299474.png",
                name: "全图港漫风格",
                options: [],
                cartoon_type: "hkcartoon",
                Action: "JPCartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148379810.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148379810.png",
                name: "全图日漫风格",
                options: [],
                cartoon_type: "jpcartoon",
                Action: "JPCartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148437474.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656148437474.png",
                name: "人像日漫风格",
                options: [],
                cartoon_type: "jpcartoon_head",
                Action: "JPCartoon"
            },

            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149429766.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149429766.png",
                name: "皮克斯漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "pixar"
            },


            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149629430.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656149629430.png",
                name: "浮世绘漫画",
                options: [],
                cartoon_type: "",
                Action: "PotraitEffect",
                type: "ukiyoe_cartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656299850320.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656299850320.png",
                name: "剪纸风漫画",
                options: [],
                cartoon_type: "",
                Action: "ImageStyleConversion",
                type: "jzcartoon"
            },
            {
                after_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656299879400.png",
                before_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/detail.jpg",
                index_img: "https://7374-store-user-9gji5bqx703ca52d-1312046296.tcb.qcloud.la/manhua/1656299879400.png",
                name: "水彩风漫画",
                options: [],
                cartoon_type: "",
                Action: "ImageStyleConversion",
                type: "watercolor_cartoon"
            },

        ]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },
    toDetail(e) {

        let item = e.currentTarget.dataset.item
        console.log(item);
        wx.navigateTo({
            url: "/pages/detail/detail?item=" + item,
            success: (res) => {
                res.eventChannel.emit('acceptDataFromOpenerPage', item)
            }
        })
    },
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})